/**
 * Created by minigci.he on 16/9/9.
 */
var obj = new Proxy({},{
    get: function(target, key, receiver){
        console.log(`getting ${key}`)
        return Reflect.get(target, key, receiver)
    },
    set: function (target, key, value, receiver) {
        console.log(`setting ${key}`)
        return Reflect.set(target, key, value, receiver)
    }
})

obj.count = 1;
++obj.count;